LL I2C APIs listing for migration

There are a few API changes in the LL layer. This page lists only the modified LL APIs. Others not listed here are unchanged between HAL1 and HAL2.

APIs that retain their original name and functionality ,executing the same operations on the identical registers and bit fields , but have updated function signatures are not listed .

LL I2C constants

HAL1

series

HAL2

LL_I2C_MODE_SMBUS_DEVICE

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_MODE_SMBUS_SLAVE

LL_I2C_MODE_SMBUS_DEVICE_ARP

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_MODE_SMBUS_SLAVE_ARP

LL_I2C_CLOCK_SPEED_FAST_MODE

f4

Not implemented yet in HAL2.

LL_I2C_CLOCK_SPEED_STANDARD_MODE

f4

Not implemented yet in HAL2.

LL_I2C_CR2_ITBUFEN

f4

Not implemented yet in HAL2.

LL_I2C_CR2_ITERREN

f4

Not implemented yet in HAL2.

LL_I2C_CR2_ITEVTEN

f4

Not implemented yet in HAL2.

LL_I2C_DUTYCYCLE_16_9

f4

Not implemented yet in HAL2.

LL_I2C_DUTYCYCLE_2

f4

Not implemented yet in HAL2.

LL_I2C_SR1_ADD10

f4

Not implemented yet in HAL2.

LL_I2C_SR1_ADDR

f4

Not implemented yet in HAL2.

LL_I2C_SR1_AF

f4

Not implemented yet in HAL2.

LL_I2C_SR1_ARLO

f4

Not implemented yet in HAL2.

LL_I2C_SR1_BERR

f4

Not implemented yet in HAL2.

LL_I2C_SR1_BTF

f4

Not implemented yet in HAL2.

LL_I2C_SR1_OVR

f4

Not implemented yet in HAL2.

LL_I2C_SR1_PECERR

f4

Not implemented yet in HAL2.

LL_I2C_SR1_RXNE

f4

Not implemented yet in HAL2.

LL_I2C_SR1_SB

f4

Not implemented yet in HAL2.

LL_I2C_SR1_SMALERT

f4

Not implemented yet in HAL2.

LL_I2C_SR1_STOPF

f4

Not implemented yet in HAL2.

LL_I2C_SR1_TIMEOUT

f4

Not implemented yet in HAL2.

LL_I2C_SR1_TXE

f4

Not implemented yet in HAL2.

LL_I2C_SR2_BUSY

f4

Not implemented yet in HAL2.

LL_I2C_SR2_DUALF

f4

Not implemented yet in HAL2.

LL_I2C_SR2_GENCALL

f4

Not implemented yet in HAL2.

LL_I2C_SR2_MSL

f4

Not implemented yet in HAL2.

LL_I2C_SR2_SMBDEFAULT

f4

Not implemented yet in HAL2.

LL_I2C_SR2_SMBHOST

f4

Not implemented yet in HAL2.

LL_I2C_SR2_TRA

f4

Not implemented yet in HAL2.

LL_I2C_GRP1_COMP1_TRG

u5

LL_I2C_TRIG_GRP1_COMP1_OUT

LL_I2C_GRP1_COMP2_TRG

u5

LL_I2C_TRIG_GRP1_COMP2_OUT

LL_I2C_GRP1_EXTI5_TRG

u5

LL_I2C_TRIG_GRP1_EXTI5

LL_I2C_GRP1_EXTI9_TRG

u5

LL_I2C_TRIG_GRP1_EXTI9

LL_I2C_GRP1_GPDMA_CH0_TCF_TRG

u5

LL_I2C_TRIG_GRP1_GPDMA1_CH0_TC

LL_I2C_GRP1_GPDMA_CH1_TCF_TRG

u5

LL_I2C_TRIG_GRP1_GPDMA1_CH1_TC

LL_I2C_GRP1_GPDMA_CH2_TCF_TRG

u5

LL_I2C_TRIG_GRP1_GPDMA1_CH2_TC

LL_I2C_GRP1_GPDMA_CH3_TCF_TRG

u5

LL_I2C_TRIG_GRP1_GPDMA1_CH3_TC

LL_I2C_GRP1_LPTIM1_CH1_TRG

u5

LL_I2C_TRIG_GRP1_LPTIM1_CH1

LL_I2C_GRP1_LPTIM2_CH1_TRG

u5

LL_I2C_TRIG_GRP1_LPTIM2_CH1

LL_I2C_GRP1_RTC_ALRA_TRG

u5

LL_I2C_TRIG_GRP1_RTC_ALRA_TRG

LL_I2C_GRP1_RTC_WUT_TRG

u5

LL_I2C_TRIG_GRP1_RTC_WUT_TRG

LL_I2C_GRP2_COMP1_TRG

u5

LL_I2C_TRIG_GRP2_COMP1_OUT

LL_I2C_GRP2_COMP2_TRG

u5

LL_I2C_TRIG_GRP2_COMP2_OUT

LL_I2C_GRP2_EXTI5_TRG

u5

LL_I2C_TRIG_GRP2_EXTI5

LL_I2C_GRP2_EXTI8_TRG

u5

LL_I2C_TRIG_GRP2_EXTI8

LL_I2C_GRP2_LPDMA_CH0_TCF_TRG

u5

LL_I2C_TRIG_GRP2_LPDMA1_CH0_TC

LL_I2C_GRP2_LPDMA_CH1_TCF_TRG

u5

LL_I2C_TRIG_GRP2_LPDMA1_CH1_TC

LL_I2C_GRP2_LPDMA_CH2_TCF_TRG

u5

LL_I2C_TRIG_GRP2_LPDMA1_CH2_TC

LL_I2C_GRP2_LPDMA_CH3_TCF_TRG

u5

LL_I2C_TRIG_GRP2_LPDMA1_CH3_TC

LL_I2C_GRP2_LPTIM1_CH1_TRG

u5

LL_I2C_TRIG_GRP2_LPTIM1_CH1

LL_I2C_GRP2_LPTIM3_CH1_TRG

u5

LL_I2C_TRIG_GRP2_LPTIM3_CH1

LL_I2C_GRP2_RTC_ALRA_TRG

u5

LL_I2C_TRIG_GRP2_RTC_ALRA_TRG

LL_I2C_GRP2_RTC_WUT_TRG

u5

LL_I2C_TRIG_GRP2_RTC_WUT_TRG

LL I2C macros

HAL1

series

HAL2

LL_I2C_WriteReg

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_WRITE_REG

LL_I2C_ReadReg

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_READ_REG

__LL_I2C_CONVERT_TIMINGS

u5, h5, c0, l4, g4, g0, h7

LL_I2C_CONVERT_TIMINGS

__LL_I2C_10BIT_ADDRESS

f4

Not implemented yet in HAL2.

__LL_I2C_10BIT_HEADER_READ

f4

Not implemented yet in HAL2.

__LL_I2C_10BIT_HEADER_WRITE

f4

Not implemented yet in HAL2.

__LL_I2C_FREQ_HZ_TO_MHZ

f4

Not implemented yet in HAL2.

__LL_I2C_FREQ_MHZ_TO_HZ

f4

Not implemented yet in HAL2.

__LL_I2C_RISE_TIME

f4

Not implemented yet in HAL2.

__LL_I2C_SPEED_FAST_TO_CCR

f4

Not implemented yet in HAL2.

__LL_I2C_SPEED_STANDARD_TO_CCR

f4

Not implemented yet in HAL2.

__LL_I2C_SPEED_TO_CCR

f4

Not implemented yet in HAL2.

LL I2C structures

HAL1

series

HAL2

LL_I2C_InitTypeDef

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

LL I2C functions

HAL1

series

HAL2

Refer to

LL_I2C_Init

u5, h5, c0, l4, g4, g0, h7

Removed / New Usage changes

Refer to

LL_I2C_DeInit

u5, h5, c0, l4, g4, g0, h7

Removed / New Usage changes

Refer to

LL_I2C_StructInit

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

LL_I2C_SetOwnAddress2

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_SetOwnAddress2

Refer to

LL_I2C_DMA_GetRegAddr

u5, h5, c0, l4, g4, g0, f4, h7

LL_I2C_DMA_GetRegAddr

LL_I2C_ClearFlag_AF

f4

Not implemented yet in HAL2.

LL_I2C_ConfigSpeed

f4

Not implemented yet in HAL2.

LL_I2C_DisableBitPOS

f4

Not implemented yet in HAL2.

LL_I2C_DisableIT_BUF

f4

Not implemented yet in HAL2.

LL_I2C_DisableIT_EVT

f4

Not implemented yet in HAL2.

LL_I2C_DisableLastDMA

f4

Not implemented yet in HAL2.

LL_I2C_DisableReset

f4

Not implemented yet in HAL2.

LL_I2C_DisableSMBusPECCompare

f4

Not implemented yet in HAL2.

LL_I2C_EnableBitPOS

f4

Not implemented yet in HAL2.

LL_I2C_EnableIT_BUF

f4

Not implemented yet in HAL2.

LL_I2C_EnableIT_EVT

f4

Not implemented yet in HAL2.

LL_I2C_EnableLastDMA

f4

Not implemented yet in HAL2.

LL_I2C_EnableReset

f4

Not implemented yet in HAL2.

LL_I2C_ClearFlag_AF

f4

Not implemented yet in HAL2.

LL_I2C_GetClockPeriod

f4

Not implemented yet in HAL2.

LL_I2C_GetClockSpeedMode

f4

Not implemented yet in HAL2.

LL_I2C_GetDutyCycle

f4

Not implemented yet in HAL2.

LL_I2C_GetPeriphClock

f4

Not implemented yet in HAL2.

LL_I2C_GetRiseTime

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_ADD10

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_MSL

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_SB

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveSMBusFlag_SMBDEFAULT

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveSMBusFlag_SMBHOST

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_SB

f4

Not implemented yet in HAL2.

LL_I2C_IsEnabledBitPOS

f4

Not implemented yet in HAL2.

LL_I2C_IsEnabledIT_BUF

f4

Not implemented yet in HAL2.

LL_I2C_IsEnabledIT_EVT

f4

Not implemented yet in HAL2.

LL_I2C_IsEnabledLastDMA

f4

Not implemented yet in HAL2.

LL_I2C_IsResetEnabled

f4

Not implemented yet in HAL2.

LL_I2C_SetClockPeriod

f4

Not implemented yet in HAL2.

LL_I2C_SetClockSpeedMode

f4

Not implemented yet in HAL2.

LL_I2C_SetDutyCycle

f4

Not implemented yet in HAL2.

LL_I2C_SetPeriphClock

f4

Not implemented yet in HAL2.

LL_I2C_SetRiseTime

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_AF

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_BTF

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_DUAL

f4

Not implemented yet in HAL2.

LL_I2C_IsActiveFlag_GENCALL

f4

Not implemented yet in HAL2.